function handles = plot1vs2(handles);
% plot1vs2
% 
% editing:
% gs july 2006
% ------------------------------------------------

% first parameter
paramStr = get(handles.parameter1name,'String');
if isempty(paramStr)
    disp('Parameter name missing.')
    return
else
    handles = loadParameter(paramStr, handles); 
end
handles.analysis.mapAverager.parameter1Name = handles.analysis.mapAverager.currentParameterName;
handles.analysis.mapAverager.parameter1Val = handles.analysis.mapAverager.currentParameterVal;

% second parameter
paramStr = get(handles.parameter2name,'String');
if isempty(paramStr)
    disp('Parameter name missing.')
    return
else
    handles = loadParameter(paramStr, handles); 
end
handles.analysis.mapAverager.parameter2Name = handles.analysis.mapAverager.currentParameterName;
handles.analysis.mapAverager.parameter2Val = handles.analysis.mapAverager.currentParameterVal;

figure('Color', 'w');
plot(handles.analysis.mapAverager.parameter1Val, handles.analysis.mapAverager.parameter2Val, 'bo');
xlabel(handles.analysis.mapAverager.parameter1Name);
ylabel(handles.analysis.mapAverager.parameter2Name);
